home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / converter / pbm with gui / man / pgmkernel.man < prev    next >
Encoding:
Text File  |  1996-07-16  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      pgmkernel(1)        AMIGA (10 December 1992)         pgmkernel(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           pgmkernel - generate a convolution kernel
  10.  
  11.      SYNOPSIS
  12.           pgmkernel [ -weight w ] width [ height ]
  13.  
  14.      DESCRIPTION
  15.           Generates a portable graymap array of size width x height
  16.           (or width x width if height is not specified) to be used as
  17.           a convolution file by pnmconvol.  The data in the
  18.           convolution array K are computed according to the formula:
  19.  
  20.           K(i,j) = 1 / ( 1 + w * sqrt((i-width/2)^2 + (j-height/2)^2))
  21.  
  22.           where w is a coefficient specified via the -weight flag, and
  23.           width and height are the X and Y filter sizes.
  24.  
  25.           The output PGM file is always written out in ASCII format.
  26.  
  27.      OPTIONS
  28.           The optional -weight flag should be a real number greater
  29.           than -1.  The default value is 6.0.
  30.  
  31.      BUGS
  32.           The computation time is proportional to width * height.
  33.           This increases rapidly with the increase of the kernel size.
  34.           A better approach could be using a FFT in these cases.
  35.  
  36.      SEE ALSO
  37.           pnmconvol(1), pnmsmooth(1)
  38.  
  39.      AUTHOR
  40.           Alberto Accomazzi (alberto@cfa.harvard.edu).
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/1/94)
  64.  
  65.  
  66.  
  67.